package com.mk.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mk.seckill.pojo.User;
import com.mk.seckill.vo.LoginVo;
import com.mk.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IUserService extends IService<User> {

	// 登录判断
	RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

	// 根据传到服务器的cookie中的ticket获取redis中缓存的用户
	User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);


	// 更新密码
	RespBean updatePassword(String userTicket, String password, HttpServletRequest request,
	                        HttpServletResponse response);
}
